{% extends 'ProjResManBundle::layout.html.twig' %}

{% block title %}ProjResManBundle:HeadMaster:programs{% endblock %}

{% block content %}
    <h3>Adauga un program de studiu</h3> 

    {% if app.session.hasFlash('prog-notice') %}
        <div>
            {{ app.session.flash('prog-notice') }}
        </div>
    {% endif %}
    
    <form action="{{ path('headmaster_academicprogram_add') }}" method="post" {{ form_enctype(form) }}>
        {{ form_errors(form) }}
           
        {{ form_row(form.level) }}
        {{ form_row(form.profile) }}
        {{ form_row(form.duration) }}
        {{ form_row(form.type) }}
        {{ form_row(form.language) }}
        {{ form_rest(form) }}
            
        <input type="submit" class="btn btn-info" value="Adauga" /></a>
    </form>
    
    <div>
        <a href="{{ path('headmaster_get_academicprograms') }}">Inapoi</a>
    </div>
{% endblock %}
